import { defineStore } from 'pinia'

export const useCounterStore = defineStore({
  id: 'counter',
  state: () => {
    //全局要用到的数据存储在pinia
    return{
      role:sessionStorage?.role,
      adminname: sessionStorage?.adminname,
      isloading:ref<boolean>(false)
    }
  },
  getters: {
    
  },
  actions: {
    
  }
})
